package EveryDayPractice;

import java.util.Scanner;

public class Practice08 {
     public static void main(String[] args) {
         Scanner sc = new Scanner(System.in);
         int x = sc.nextInt();
         int a=2;
         int sum=0;
         for (int i =0; i <x; i++) {
             int y=0;
              for (int j =i; j >=0; j--) {
                 y=y*10+a;
              }
System.out.println(y);
              sum=sum+y;
         }
         System.out.println(sum);

     }
}
